#!/usr/bin/python
# -*- coding: UTF-8 -*-

# @author zhangsheng
# @date 2019/9/11
from flask import Flask
from flask import render_template, request

app = Flask(__name__)


@app.route('/', methods=['GET'])
def index():
    return render_template("index.html")


@app.route('/send', methods=['POST'])
def input_content():
    content = request.form['name']
    return render_template("content.html", content=content)


if __name__ == '__main__':
    app.run(port=8080)
